package com.example.controller;

import com.example.feign.HelloRemote;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author hewei
 * @Title: HelloRemoteHystrix
 * @ProjectName idea-workspace
 * @Description: 熔断器的fallback类
 * @date 2018/11/18 14:32
 */
@Component
public class HelloRemoteHystrix implements HelloRemote {
    @Override
    public String Hello(@RequestParam("name") String name) {
        return "hello " + name + ", this messge send failed ";
    }
}
